#include<iostream>
#include<stdio.h>

using namespace std;

int main() {
   char tmp;
   bool flag = true;
   
   while(scanf("%c", &tmp) == 1) {
      if(tmp == '\"') {
         if(flag) {
            cout << "``";
            flag = false;
         }
         else {
            cout << "''";
            flag = true;
         }
      }
      else
         cout << tmp;
   }
   return 0;
}
